<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<body>
<!---------------- 商品详情 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- jsfiles -->
{include file="common/page/jsfiles"}
<!-- 主体 -->
<div class="content container-fluid {if $leftBarScale eq '1'} scale {/if} ">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3><i class="icon iconfont">{$Think.session.currentMenu.icon}</i>商品详情</h3>
            <div class="inner-section row">
                <div class="items add-div">
                    <form id="myForm" action="#" method="post" enctype="multipart/form-data">
                        <div class="item table-responsive">
                            <table class="table table-striped table-hover table-bordered table-base">
                                <tbody>
                                    <tr>
                                        <td>商品名称<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.name}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品图片<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            <img src="{$Think.const.ROOT_URL}.{$goodsInfo.img_url}" height="30">
                                        </td>
                                        <td></td>
                                    </tr>
                                    {if $goodsInfo.standard eq 1}
                                    <tr>
                                        <td>商品属性<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            <div class="property-group-wrap">
                                                <div class="property-group-area">
                                                    {foreach name = "propertyGroups" item = "group"}
                                                    <div class="property-group">
                                                        {foreach name = "group.propertyList" item = "property"}
                                                        <span class="span property">
                                                            <span  class="property-name">{$property->name}</span>
                                                            <span class="property-value">【{$property->value}】</span>
                                                        </span>
                                                        {/foreach}
                                                        <span>现价</span>
                                                        {$group.price}
                                                        <span>原价</span>
                                                        {$group.ori_price}
                                                        <span>库存</span>
                                                        {$group.inventory}
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>

                                            <input type="hidden" name="propertyGroups" id="propertyGroups">
                                        </td>
                                        <td class="td3 property-info"></td>
                                    </tr>
                                    {/if}
                                    <tr>
                                        <td class="td1"><label for="simpledesc"><span class="must-tag">*</span>商品简述</label></td>
                                        <td class="td2">
                                            {$goodsInfo.simple_desc}
                                        </td>
                                        <td class="td3"></td>
                                    </tr>
                                    <tr>
                                        <td>评价总数<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                           {if $goodsInfo.comment_count} {$goodsInfo.comment_count}
                                           {else}
                                           暂无
                                           {/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>评价总分<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.comment_score}
                                            {$goodsInfo.comment_score}
                                            {else}
                                            暂无
                                            {/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>状态<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.updown eq '0'}
			                       			已下架
			                       			{elseif $goodsInfo.updown eq '1'}
			                       			已上架
			                       			{/if}
                                        </td>
                                        <td></td>
                                    </tr>


                                    <tr>
                                        <td>秒杀价<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.price}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>商品原价<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.ori_price}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>首页推荐<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {if $goodsInfo.recommend eq '0'}
			                       			不推荐
			                       			{elseif $goodsInfo.recommend eq '1'}
			                       			推荐
			                       			{/if}
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
		                       			<td>库存<label class="must-tag">&nbsp;&nbsp;</label></td>
		                       			<td>
		                       			{$goodsInfo.inventory}
		                       			</td>
		                       			<td></td>
		                       		</tr>
		                       		<tr>
                                        <td>排序<label class="must-tag">&nbsp;&nbsp;</label></td>
                                        <td>
                                            {$goodsInfo.sort_num}
                                        </td>
                                        <td></td>
                                    </tr>
		                       		<tr>
		                       			<td>添加时间<label class="must-tag">&nbsp;&nbsp;</label></td>
		                       			<td>
		                       			{$goodsInfo.add_time}
		                       			</td>
		                       			<td></td>
		                       		</tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <a href="javascript:window.history.go(-1);" class="btn btn-default">返回</a>
                                        </td>
                                        <td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}
</body>
</html>